<%-- 
    Document   : error
    Created on : 24-may-2015, 19:59:16
    Author     : RITTER
--%>

<%@page import="java.util.Iterator"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<% 
            List errorMsgs = (List) request.getAttribute("errorMsgs");
            
%>
<style type="text/css">
    <!--
    body {
    background-color: #FFFF99;
    }
    </style>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>SUCEDIO UN ERROR HAGA CLIC <a HREF="/ejemplo/login.jsp">AQUI PARA VOLVER</a></h1>
        <%if(errorMsgs != null){%>
            <h2>Reporte de errores</h2>
            <font color='red'>
            <ul>
                <%Iterator items = errorMsgs.iterator();
             while ( items.hasNext() ) {
            String message = (String) items.next();%>
            <li><%=message %></li>
            <% }%>
            </ul>
            Intente nuevamente.
           </font>
            <% }%> 
            
            <table border ="0" align ="right" >
               
               <tr> <td width="50"><img src="/ejemplo/img/holudelao_1.gif" width="250" height="400" /></td></tr>
                
            </table>
    </body>
</html>
